<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>从 4*4 一直计算到 4*9</title>
</head>
<body>
<script>
    function timesTable(begin, end) {
        for (var i = begin; i <= end; i++) {
            document.write(begin + ' * ' + i + ' = ' + end * i + '<br/>');
        }
    }

    timesTable(4, 9);
</script>
</body>
</html>